\psset{yunit=0.9,xunit=1.3,algebraic}
\begin{pspicture*}(-0.5,-0.5)(4.5,4.5)
\psaxes[ticks=none,labels=none]{<->}(0,0)(-0.5,-0.5)(4.5,4.5)
\pscustom[linecolor=blue]{%
\psplot{1}{3}{x^3-6*x^2+11*x-3}
\gsave
\psline(3,0)
\psplot{3}{1}{-x^3+6*x^2-11*x+7}
\fill[fillstyle=solid,fillcolor=yellow]
\grestore
\psplot{3}{3.2}{x^3-6*x^2+11*x-3}}
\psplot[linecolor=blue]{0.6}{1}{x^3-6*x^2+11*x-3}
\psplot[linecolor=blue]{0.6}{3.2}{-x^3+6*x^2-11*x+7}
\psline[linecolor=gray](1,-0.1)(1,3)
\psline[linecolor=gray](3,-0.1)(3,3)
\psxTick[ticksize=-3pt 0,labelsep=3pt](1){a}
\psxTick[ticksize=-3pt 0,labelsep=3pt](3){b}
\rput[c](2,2){$\displaystyle \int_a^b f(x)-g(x)\,dx$}
\rput[l](3.5,3.5){$f(x)$}
\rput[l](3.5,0.5){$g(x)$}
\end{pspicture*}